-
Notifications
You must be signed in to change notification settings - Fork 6
Support array presets in veristat #5486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support array presets in veristat #5486
Conversation
Upstream branch: cd7312a |
Upstream branch: cd7312a |
672ea96
to
fc3be1c
Compare
Upstream branch: cd7312a |
fc3be1c
to
40f0b24
Compare
45c71f6
to
4516bd2
Compare
Upstream branch: e30329b |
40f0b24
to
7fac121
Compare
Upstream branch: e30329b |
7fac121
to
a97e0f1
Compare
4516bd2
to
983d136
Compare
Upstream branch: 99fe8af |
a97e0f1
to
5225faf
Compare
983d136
to
097b64d
Compare
Upstream branch: c11f34e |
5225faf
to
918991f
Compare
097b64d
to
1daac42
Compare
Upstream branch: 3ce7cdd |
918991f
to
6333f93
Compare
1daac42
to
86c8a5d
Compare
Upstream branch: 3ce7cdd |
6333f93
to
4de8e36
Compare
4de8e36
to
6ffc458
Compare
fd5f1d3
to
3174689
Compare
Upstream branch: d69bafe |
6ffc458
to
c29aa3b
Compare
Upstream branch: d69bafe |
c29aa3b
to
716f301
Compare
Upstream branch: d69bafe |
716f301
to
a08da07
Compare
Upstream branch: d69bafe |
a08da07
to
b45387b
Compare
3174689
to
ba6913d
Compare
Upstream branch: 0ed5f79 |
b45387b
to
f29fe77
Compare
ba6913d
to
0f61643
Compare
Upstream branch: d83caf7 |
f29fe77
to
dff367c
Compare
0f61643
to
fda4f2c
Compare
Upstream branch: 5046acc |
dff367c
to
00282cb
Compare
fda4f2c
to
75e6e11
Compare
Refactor var preset parsing in veristat to simplify implementation. Prepare parsed variable beforehand so that parsing logic is separated from functionality of calculating offsets and searching fields. Introduce rvalue struct, storing either int or enum (string value), will be reused in the next patch, extract parsing rvalue into a separate function. Signed-off-by: Mykyta Yatsenko <[email protected]> Acked-by: Eduard Zingerman <[email protected]>
Implement support for presetting values for array elements in veristat. For example: ``` sudo ./veristat set_global_vars.bpf.o -G "arr[3] = 1" ``` Arrays of structures and structure of arrays work, but each individual scalar value has to be set separately: `foo[1].bar[2] = value`. Signed-off-by: Mykyta Yatsenko <[email protected]> Acked-by: Eduard Zingerman <[email protected]>
Modify existing veristat tests to verify that array presets are applied as expected. Introduce few negative tests as well to check that common error modes are handled. Signed-off-by: Mykyta Yatsenko <[email protected]> Acked-by: Eduard Zingerman <[email protected]>
Upstream branch: 886178a |
00282cb
to
483f853
Compare
75e6e11
to
435c037
Compare
Pull request for series with
subject: Support array presets in veristat
version: 4
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=973580